package com.songlanyun.modules.donationpoints.controller.admin;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.donationpoints.service.DonationPointsService;
import com.songlanyun.modules.user.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * 公益积分捐赠
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-02 15:33:13
 */
@RestController
@RequestMapping("/admin/donation/points")
public class DonationPointsAdminController extends AbstractController {
    @Autowired
    private DonationPointsService donationPointsService;

    /**
     * 列表
     */
    @GetMapping("/page")
    //@RequiresPermissions(":donationrecord:list")
    public R list(@RequestParam Map<String, Object> params) {
        PageUtils page = donationPointsService.queryDataPage(params);

        return R.ok().put("page", page);
    }


}
